package com.example.musicplayer;

import com.example.musicplayer.musicClass.MusicInfo;
import com.example.musicplayer.musicTools.MusicPlayMode;

//音乐状态发生改变的一些处理
public interface MusicStateChangedListener {
    //音乐播放结束
    void musicCompletion(MusicInfo musicInfo);

    //音乐准备完成
    void musicPrepared(MusicInfo musicInfo);

    //音乐列表清空
    void musicEmpty(MusicInfo musicInfo);

    //音乐喜爱值改变
    void musicFavoriteChanged(MusicInfo musicInfo, boolean result);

    //播放状态改变
    void musicPlayStateChanged(MusicInfo musicInfo, boolean isPlaying);

    //音乐循环模式
    void musicPlayModeChanged(MusicInfo musicInfo, MusicPlayMode mode);

    //播放下一首
    void musicPlayNext(MusicInfo beforeMusic, MusicInfo afterMusic);

    //播放上一首
    void musicPlayLast(MusicInfo beforeMusic, MusicInfo afterMusic);
}